﻿using soma.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace soma.Models
{
    public class User
    {
        public string Email { get; set; }
        public string Key { get; set; }
        public int Hits { get; set; }

        public User(string email)
        {
            Email = email;
            Key = HashGenerator.GetHashString(email + DateTime.Now.ToString());
            Hits = 0;
        }

        public User(string email, string key, int hits)
        {
            Email = email;
            Key = key;
            Hits = hits;
        }
    }
}